/**
 * 
 */
package fr.gedos.ged.classifier.core.entities.dao.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @author cbelhaffef
 * 
 */

@Entity()
@NamedQueries({
	@NamedQuery(name="Model.getAll", query="From Model")
})
@Table (name="model")
        //,uniqueConstraints = {@UniqueConstraint(columnNames = {"name"})})

public class Model {

	@Id
	@Column(name="id_model")
	@GenericGenerator(name = "generator", strategy = "increment")
	@GeneratedValue(generator = "generator")
	private int id_model;
	
	@Column(name="type_model")
	private String type;

	@Column(name="name_model")
	private String name;

	
	public int getId_model() {
		return id_model;
	}

	public void setId_model(int id_model) {
		this.id_model = id_model;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	 
	
}
